import array
symbols = '$¢£¥€¤'
# 生成元组
print(tuple(ord(symbol) for symbol in symbols))
# 生成数组
print(array.array('I', (ord(symbol) for symbol in symbols)))
# 生成表达式中的笛卡尔积
colors = ['black', 'white']
sizes = ['S', 'M', 'L']
for tshirt in ('%s %s' % (c, s) for c in colors for s in sizes):
    print(tshirt)